<?php
/**
 * Created by PhpStorm.
 * User: HHZ
 * Date: 2018/12/21
 * Time: 17:17
 */

namespace Biz\model;

use Doraemon\pockets\datebase\BaseDbModel;

class SelectGoodsLog extends BaseDbModel
{
    const _CONFIG_FILE_ = 'db_shop';

    const _CONFIG_SELECT_ = 'db_shop';

    const _DATABASE_ = 'shop';

    const _TABLE_NAME = 'select_goods_log';

    const STATUS_NORMAL = 1;
    const STATUS_DELETE = 9;

    public static function insertLog($list)
    {
        if(self::insert($list)->rowCount()) {
            return true;
        }
        return false;
    }


    public static function getList($where, $field = '*')
    {
        return self::select($field, $where);
    }
}